<?php

require_once 'PHPUnit/Framework.php';

require_once dirname(__FILE__) . '/../../pages/reservate_hostel.php';

dirname(__FILE__).'/../../pages/db.php';
dirname(__FILE__).'/../../inc_mailer/class.phpmailer.php';
dirname(__FILE__).'/../../inc_mailer/class.smtp.php';

class reservate_hostelTest extends PHPUnit_Framework_TestCase {



    function testJedan(){
        $this->assertTrue(check_beds(10));
        }

    function testJedanFalse(){
        $this->assertFalse(check_beds('p'));
        }
        
    function testDva() {
        $this->assertTrue(check_date("10/10/2011"));
    }

    function testTri() {
        $this->assertFalse(check_date("29/2/2011"));
    }

    function testCetiri() {
        $this->assertTrue(check_dates("05/6/2011", "6/6/2011"));
    }

    function testPet() {
        $this->assertFalse(check_dates("5/6/2011", "6/5/2011"));
    }
        

    protected function setUp() {

    }


}

?>
